
<p><b>syntax:</b> <i>port_in_redirect [ on|off ] </i>
</p><p><b>default:</b> <i>port_in_redirect on</i>
</p><p><b>context:</b> <i>http, server, location</i>
</p><p>Directive allows or prevents port indication in redirects handled by nginx.
</p><p>If <code>port_in_redirect</code> is on, then Nginx will not add the port in the url when the request is redirected.
</p>
<br><i>Module: NginxHttpCoreModule</i>